package org.nstack.header.network.l3;

import org.nstack.header.message.APIEvent;
import org.nstack.header.rest.RestResponse;

import java.util.Arrays;


@RestResponse(allTo = "inventory")
public class APIAddDnsToL3NetworkEvent extends APIEvent {

    private L3NetworkInventory inventory;

    public APIAddDnsToL3NetworkEvent(String apiId) {
        super(apiId);
    }

    public APIAddDnsToL3NetworkEvent() {
        super(null);
    }

    public L3NetworkInventory getInventory() {
        return inventory;
    }

    public void setInventory(L3NetworkInventory inventory) {
        this.inventory = inventory;
    }
 
    public static APIAddDnsToL3NetworkEvent __example__() {
        APIAddDnsToL3NetworkEvent event = new APIAddDnsToL3NetworkEvent();
        L3NetworkInventory l3 = new L3NetworkInventory();

        l3.setName("Test-L3Network");
        l3.setL2NetworkUuid(uuid());
        l3.setDns(Arrays.asList("8.8.8.8"));

        event.setInventory(l3);
        return event;
    }

}
